﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site2.Master" CodeBehind="Leader.aspx.vb" Inherits="Prototype1.Leader" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
    <br />
    Current Leader Board!!<br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    BackColor="#DEBA84" BorderColor="#DEBA84" BorderWidth="1px" 
    CellPadding="3" DataKeyNames="ID" DataSourceID="SqlDataSource4" 
    style="margin-left: 0px; margin-top: 26px; margin-right: 45px;" 
    Width="609px" BorderStyle="None" 
    CellSpacing="2" Height="252px">
    <Columns>
        <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
            <ControlStyle CssClass="picSizer" />
        </asp:ImageField>
        <asp:BoundField DataField="Robot_Name" HeaderText="Robot_Name" 
            SortExpression="Robot_Name" />
        <asp:BoundField DataField="Creator" HeaderText="Creator" 
            SortExpression="Creator" />
        <asp:BoundField DataField="Ranking" HeaderText="Ranking" 
            SortExpression="Ranking" />
        <asp:BoundField DataField="DateTimeAdded" HeaderText="DateTimeAdded" 
            SortExpression="DateTimeAdded" />
    </Columns>
    <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
    <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
    <PagerStyle ForeColor="#8C4510" 
        HorizontalAlign="Center" />
    <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
    <SelectedRowStyle BackColor="#738A9C" ForeColor="White" Font-Bold="True" />
    <SortedAscendingCellStyle BackColor="#FFF1D4" />
    <SortedAscendingHeaderStyle BackColor="#B95C30" />
    <SortedDescendingCellStyle BackColor="#F1E5CE" />
    <SortedDescendingHeaderStyle BackColor="#93451F" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource4" runat="server" 
    ConnectionString="<%$ ConnectionStrings:roboticsConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:roboticsConnectionString.ProviderName %>" 
    SelectCommand="SELECT TOP 10 * FROM [mastTable1] ORDER BY [Ranking] DESC">
</asp:SqlDataSource>
    <asp:Button ID="Button1" runat="server" Text="Button" />
<br />

</asp:Content>
